Skip to content

Debug Info #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2018
Merged

Debug Info #86

merged 1 commit into from
Mar 14, 2018

Conversation

CodaFi
Copy link
Member

@CodaFi CodaFi commented Apr 18, 2017

No description provided.

@CodaFi CodaFi requested a review from harlanhaskins April 18, 2017 00:27
@harlanhaskins
Copy link
Member

This looks good so far! One small nit: I think Metadata should be one word.

@CodaFi
Copy link
Member Author

CodaFi commented Apr 18, 2017

The operative verb in all of the DI bindings is "create" instead of "build". Should we match LLVM or our IRBuilder?

@harlanhaskins
Copy link
Member

So I think the difference is that IRBuilder builds instructions in a scope, while DIBuilder creates types/relationships/metadata that are attached to instructions. So I think create works for that

@@ -362,6 +362,30 @@ public enum DWARFTypeEncoding {
case ucs

case ascii

static let typeEncodingMapping: [DWARFTypeEncoding: LLVMDWARFTypeEncoding] = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this maybe be private?

}

/// Create a new descriptor for a parameter variable.
public func createParameterVariable(in scope: Scope, named name: String, at index: UInt32, in file: FileMetadata, at line: Int, type: DIType, _ alwaysPreserve: Bool = true, flags: DebugInfoFlags = .zero) -> VariableMetadata {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make all the indices Ints. Swift stdlib did this too.

@CodaFi CodaFi force-pushed the mushi-mushi branch 3 times, most recently from 8e9c7e3 to 122036c Compare September 30, 2017 01:58
@CodaFi CodaFi force-pushed the mushi-mushi branch 4 times, most recently from 0870807 to b42ddf6 Compare March 14, 2018 04:06
@CodaFi CodaFi changed the title [WIP][RFC] Debug Info Debug Info Mar 14, 2018
@CodaFi
Copy link
Member Author

CodaFi commented Mar 14, 2018

⛵️

@CodaFi CodaFi merged commit 7ab7cdd into llvm-swift:master Mar 14, 2018
@CodaFi CodaFi deleted the mushi-mushi branch March 14, 2018 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants